<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">

<head th:include="/views/common/common_head::commonHeader('个人中心')"></head>

<body>
    <nav th:replace="/views/common/footer::navHead"></nav>

    <div class="container wrap">
        <div class="row">
            <div th:replace="/views/common/footer::leftMenu">
            </div>
            <div class="col-md-5">
                <form class="form-horizontal" id="personInfoForm">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Email</label>
                        <div class="col-sm-10">
                            <p class="form-control-static">email@example.com</p>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" id="inputPassword" placeholder="请输入密码">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-10 col-sm-offset-2">
                            <button type="button" name="submitBtn" class="btn btn-default">提交</button>
                            <button type="button" name="restBtn" class="btn btn-info col-sm-offset-1">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div th:replace="/views/common/footer::copyright"></div>
    <div th:include="/views/common/common_js::onloadjs"></div>

    <script>
        $(function () {
            $('a[name=\'signOut\']').click(function () {
                $.post('/signOut', function (data) {
                    if(data.flag){
                        window.location = '/';
                    }else {
                        alert(data.msg);
                    }
                });
            });
        });
    </script>

</body>
</html>